package com.xy.masterdata.enums;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@NoArgsConstructor
@ToString
public enum ResultEnums {

    SUCCESS("0", "请求成功"),
    ERROR("10000", "请求失败"),
    SYSTEM_ERROR("10001", "系统异常"),
    BUSSINESS_ERROR("10002", "业务逻辑错误"),
    VERIFY_CODE_ERROR("10003", "业务参数错误"),
    PARAM_ERROR("10004", "业务参数错误");

    @Getter
    @Setter
    private String code;
    @Getter
    @Setter
    private String msg;

    ResultEnums(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}